<template>
    <el-container>
      <el-aside width="200px">
        <el-menu :default-active="activeIndex" class="el-menu-vertical-demo" @select="handleSelect">
          <el-menu-item index="students">Students</el-menu-item>
          <el-menu-item index="classes">Classes</el-menu-item>
          <el-menu-item index="schools">Schools</el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </template>
  
  <script>
  export default {
    data() {
      return {
        activeIndex: 'students',
      }
    },
    methods: {
      handleSelect(index) {
        this.$router.push(`/dashboard/${index}`)
      },
    },
  }
  </script>